setsumbit=function(){
	let button=document.getElementById("addsubimt");
	button.onclick=function(){
		myclick();
	}
}
myclick=function(){
	let xml;
	let pName=document.getElementById('pName').value;
	let pCategory=document.getElementById('pCategory').value;
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			let t=JSON.parse(xml.responseText);
			if(t.status==200)
			alert("成功");
			else alert("失败");
		}
	}
	xml.open("post","/positions/addpositions",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('pCategory='+pCategory+'&pName='+pName);
}